You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"ERROR: make clean does not clean up the writer executable in ${SOURCE_DIR}/finder-app"
13
+
exit 1
14
+
fi
15
+
11
16
make
17
+
if [ -x"./writer" ];then
18
+
./writer
19
+
rc=$?
20
+
if [ $rc-ne 1 ];then
21
+
add_validate_error "writer should have exited with return value 1 if no parameters were specified"
22
+
fi
12
23
13
-
./writer
14
-
rc=$?
15
-
if [ $rc-ne 1 ];then
16
-
add_validate_error "writer should have exited with return value 1 if no parameters were specified"
24
+
./writer "$filedir"
25
+
rc=$?
26
+
if [ $rc-ne 1 ];then
27
+
add_validate_error "writer should have exited with return value 1 if write string is not specified"
28
+
fi
29
+
echo"Performing make clean"
30
+
make clean
31
+
else
32
+
echo"Makefile Error, Failed to generate writer executable in ${SOURCE_DIR}/finder-app."
33
+
exit 1
17
34
fi
18
35
19
-
./writer "$filedir"
36
+
./finder-test.sh
20
37
rc=$?
21
-
if [ $rc-ne 1 ];then
22
-
add_validate_error "writer should have exited with return value 1 if write string is not specified"
38
+
# Check if writer executable exists after finder-test.sh
39
+
if [ !-x"./writer" ];then
40
+
echo"ERROR: ./writer executable does not exist after executing finder-test.sh in ${SOURCE_DIR}/finder-app. Make sure finder-test.sh includes the necessary make step."
41
+
exit 1
23
42
fi
24
43
25
-
./finder-test.sh
26
-
rc=$?
27
44
if [ $rc-ne 0 ];then
28
-
add_validate_error "finder-test.sh execution failed with return code $rc"
45
+
add_validate_error "finder-test.sh execution failed with return code $rc"
29
46
fi
30
47
31
48
if [ !-z"${validate_error}" ];then
32
49
echo"Validation failed with error list ${validate_error}"
0 commit comments