@@ -0,0 +1,1938 @@
+%22%22%22%0A@brief      test log(time=20s)%0A%0Askip this test for regular run%0A%22%22%22%0A%0Aimport sys%0Aimport os%0Aimport unittest%0Aimport re%0A%0Atry:%0A    import src%0Aexcept ImportError:%0A    path = os.path.normpath(%0A        os.path.abspath(%0A            os.path.join(%0A                os.path.split(__file__)%5B0%5D,%0A                %22..%22,%0A                %22..%22)))%0A    if path not in sys.path:%0A        sys.path.append(path)%0A    import src%0A%0Atry:%0A    import pyquickhelper%0Aexcept ImportError:%0A    path = os.path.normpath(%0A        os.path.abspath(%0A            os.path.join(%0A                os.path.split(__file__)%5B0%5D,%0A                %22..%22,%0A                %22..%22,%0A                %22..%22,%0A                %22pyquickhelper%22,%0A                %22src%22)))%0A    if path not in sys.path:%0A        sys.path.append(path)%0A    if %22PYQUICKHELPER%22 in os.environ and len(os.environ%5B%22PYQUICKHELPER%22%5D) %3E 0:%0A        sys.path.append(os.environ%5B%22PYQUICKHELPER%22%5D)%0A    import pyquickhelper%0A%0A%0Afrom src.pymyinstall.installhelper.module_install import ModuleInstall%0Afrom pyquickhelper import fLOG%0A%0A%0Aclass TestDownloadPyCuda(unittest.TestCase):%0A%0A    def test_install_pycuda(self):%0A        fLOG(%0A            __file__,%0A            self._testMethodName,%0A            OutputPrint=__name__ == %22__main__%22)%0A        fold = os.path.abspath(os.path.split(__file__)%5B0%5D)%0A        temp = os.path.join(fold, %22temp_download_pycuda%22)%0A        if not os.path.exists(temp):%0A            os.mkdir(temp)%0A        for _ in os.listdir(temp):%0A            if os.path.isfile(os.path.join(temp, _)):%0A                os.remove(os.path.join(temp, _))%0A%0A        if sys.platform.startswith(%22win%22):%0A            fLOG(%22install%22, %22h5py%22)%0A            m = ModuleInstall(%22pycuda%22, %22wheel%22, fLOG=fLOG)%0A            exe = m.download(%0A                temp_folder=temp,%0A                file_save=os.path.join(%0A                    temp,%0A                    %22out_page.html%22))%0A            assert os.path.exists(exe)%0A%0Aif __name__ == %22__main__%22:%0A    unittest.main()%0A

add a test for pycuda