Added test target to makefile.
[yaffs2.git] / direct / test-framework / timothy_tests / is_yaffs_working_tests / Makefile
index f1288a6e10662291f1e24ad2ea8dd67ccfb1f197..8141370958d73c33aa5cd411fb2ef997000ad2dc 100644 (file)
@@ -3,7 +3,7 @@
 #
 # YAFFS: Yet another Flash File System. A NAND-flash specific file system.
 #
-# Copyright (C) 2003-2010 Aleph One Ltd.
+# Copyright (C) 2002-2018 Aleph One Ltd.
 #
 #
 # Created by Timothy Manning <timothy@aleph1.co.uk>
@@ -30,12 +30,9 @@ ALL_UNSORTED_OBJS += $(YAFFS_TEST_OBJS) $(FUZZER_OBJS)
 
 include $(YDI_FRAMEWORK_DIR)/FrameworkRules.mk
 
-
-yaffs_test: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
-       gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS)
-
-
+phony. test: test_1_yaffs_mount
+       ./test_1_yaffs_mount
 
 test_1_yaffs_mount: $(FRAMEWORK_SOURCES) $(YAFFS_TEST_OBJS)
-       gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS)
+       gcc $(CFLAGS) -o $@ $(YAFFS_TEST_OBJS) -lpthread