Fix the test driver

This commit is contained in:
Rodrigo Arias 2021-11-16 13:55:36 +01:00
parent def2510086
commit ba36f5702c
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
set(OVNI_TEST_DIR "${CMAKE_SOURCE_DIR}/test")
add_executable(flush flush.c)
target_link_libraries(flush ovni)
add_test(NAME flush COMMAND ./driver.sh flush)
add_test(NAME flush COMMAND "${OVNI_TEST_DIR}/driver.sh" flush)

View File

@ -19,14 +19,14 @@ set -e
testname="$1"
tracedir="ovni"
emubin=../emu
emubin=../ovniemu
rm -rf $tracedir
rm -rf "$tracedir"
# Run the test
./$testname
"./$testname"
# Then launch the emulator in lint mode
$emubin $tracedir
"$emubin" -l "$tracedir"
#rm -rf $tracedir