Update Snapshot(2018-12-12)
[platform/upstream/iotivity.git] / auto_build.py
index da8183f..4c1330e 100644 (file)
@@ -36,6 +36,7 @@ def call_scons(build_options, extra_option_str):
     cmd_line += " " + str(extra_option_str)
 
     print ("Running : " + cmd_line)
+    sys.stdout.flush()
     exit_code = subprocess.Popen([cmd_line], shell=True).wait()
     if exit_code != 0:
         exit(exit_code)
@@ -398,7 +399,12 @@ def unit_tests():
                         'TEST':1,
                         'RELEASE':'false',
                     }
-    extra_option_str = "resource"
+    call_scons(build_options, extra_option_str)
+    build_options = {
+                        'TEST':1,
+                        'SECURED':1,
+                        'RELEASE':'false',
+                    }
     call_scons(build_options, extra_option_str)
 
     print ("*********** Unit test Stop *************")