def test_main_parse_chillbuild_cuda_release(self):
     tclist = main.args_to_tclist('-b {} -C {} build-chill-testcase -u -v release'.format(self.staging_dir_bin, self.chill_dev_src).split(), coverage_set=gcov.GcovSet())
     tc = tclist[0]
     self.assertEqual(tc.name, 'cuda-chill-release')
     self.assertEqual(tc.config.bin_dir, self.staging_dir_bin)
     self.assertEqual(tc.config.chill_dir, self.chill_dev_src)
     self.assertEqual(tc.config.script_lang, 'lua')
 def test_main_parse_chill_release(self):
     tclist = main.args_to_tclist('-b {} chill-testcase -uv release path/to/somescript.lua path/to/somesrc.c'.format(self.staging_dir_bin).split(), coverage_set=gcov.GcovSet())
     tc = tclist[0]
     self.assertEqual(tc.name, 'cuda-chill-release:somescript.lua')
     self.assertEqual(tc.wd, os.getcwd())
     self.assertEqual(tc.chill_bin, os.path.join(self.staging_dir_bin, 'cuda-chill-release'))
     self.assertEqual(tc.chill_script, 'somescript.lua')
     self.assertEqual(tc.chill_src, 'somesrc.c')
     self.assertEqual(tc.chill_script_path, os.path.join(os.getcwd(), 'path/to/somescript.lua'))
     self.assertEqual(tc.chill_src_path, os.path.join(os.getcwd(), 'path/to/somesrc.c'))
     self.assertEqual(tc.chill_gensrc, 'rose_somesrc.cu')
 def test_main_parse_cudachill_dev(self):
     tclist = main.args_to_tclist('-b {} chill-testcase -u path/to/somescript.lua path/to/somesrc.c'.format(self.staging_dir_bin).split(), coverage_set=gcov.GcovSet())
     tc = tclist[0]
     
     self.assertEqual(tc.config.chill_dir, None)
     self.assertEqual(tc.config.bin_dir, self.staging_dir_bin)
     self.assertEqual(tc.config.build_cuda, True)
     self.assertEqual(tc.config.version, 'dev')
     self.assertEqual(tc.config.script_lang, 'lua')
     
     self.assertEqual(tc.name, 'cuda-chill:somescript.lua')
     self.assertEqual(tc.wd, os.getcwd())
     self.assertEqual(tc.chill_bin, os.path.join(self.staging_dir_bin, 'cuda-chill'))
     self.assertEqual(tc.chill_script, 'somescript.lua')
     self.assertEqual(tc.chill_src, 'somesrc.c')
     self.assertEqual(tc.chill_script_path, os.path.join(os.getcwd(), 'path/to/somescript.lua'))
     self.assertEqual(tc.chill_src_path, os.path.join(os.getcwd(), 'path/to/somesrc.c'))
     self.assertEqual(tc.chill_gensrc, 'rose_somesrc.cu')
 def test_main_tctree(self):
     tclist = main.args_to_tclist('batch test-cases/unit/chill-basic.tclist'.split(), coverage_set=gcov.GcovSet())
     for tc in tclist:
         runtest(tc)