Fix the test driver
This commit is contained in:
parent
def2510086
commit
ba36f5702c
@ -14,7 +14,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# 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)
|
add_executable(flush flush.c)
|
||||||
target_link_libraries(flush ovni)
|
target_link_libraries(flush ovni)
|
||||||
|
|
||||||
add_test(NAME flush COMMAND ./driver.sh flush)
|
add_test(NAME flush COMMAND "${OVNI_TEST_DIR}/driver.sh" flush)
|
||||||
|
@ -19,14 +19,14 @@ set -e
|
|||||||
|
|
||||||
testname="$1"
|
testname="$1"
|
||||||
tracedir="ovni"
|
tracedir="ovni"
|
||||||
emubin=../emu
|
emubin=../ovniemu
|
||||||
|
|
||||||
rm -rf $tracedir
|
rm -rf "$tracedir"
|
||||||
|
|
||||||
# Run the test
|
# Run the test
|
||||||
./$testname
|
"./$testname"
|
||||||
|
|
||||||
# Then launch the emulator in lint mode
|
# Then launch the emulator in lint mode
|
||||||
$emubin $tracedir
|
"$emubin" -l "$tracedir"
|
||||||
|
|
||||||
#rm -rf $tracedir
|
#rm -rf $tracedir
|
||||||
|
Loading…
Reference in New Issue
Block a user