cat middle.c >> $SUITE
for i in */*.c ; do
- echo " errors -= $(basename $i \.c)(\"$(dirname $i)/$(basename $i \.c)\", param);" >> $SUITE
+ echo " errors -= $(basename $i \.c)(\"$(dirname $i)/$(basename $i \.c)\");" >> $SUITE
+ echo " tests++;" >> $SUITE
done
cat end.c >> $SUITE
printf("================================================================================\n");
- printf("%s : %d errors detected.\n", argv[0], errors);
+ printf("%s : %d errors in %d tests detected.\n", argv[0], errors, tests);
printf("================================================================================\n");
return 0;
}
int main(int argc, char *argv[]) {
int errors = 0;
+ int tests = 0;
printf("================================================================================\n");
printf("%s : Starting test ...\n", argv[0]);
-#ifndef S_STORE_H
-#define S_STORE_H
+#ifndef S_STORE_EXISTING_H
+#define S_STORE_EXISTING_H
int s_store_existing(const char *);