1 Sub Main( Opt, AppKey )
\r
2 path = SearchParent("TestCommon.vbs")
\r
3 If not IsEmpty( path ) Then include path
\r
4 RunTestPrompt AppKey.NewWritable( "." )
\r
8 Sub Test_current( tests )
\r
9 If IsEmpty( tests.CurrentTest.Delegate ) Then
\r
10 Set g = CreateObject( "Scripting.Dictionary" ) : Set tests.CurrentTest.Delegate = g
\r
11 If IsDefined( "TestCommon_setVariables" ) Then TestCommon_setVariables g
\r
15 '==============================================================================
\r
16 g("ExeName") = "feq"
\r
17 g("Config") = "Release"
\r
18 '==============================================================================
\r
23 Sub Test_build( tests )
\r
24 get_DevEnvObj : If IsEmpty( GetVar( "devenv_ver_name" ) ) Then Skip
\r
26 Set g = tests.CurrentTest.Delegate
\r
27 r = RunProg( "cscript "+g("ExeName")+"_setup.vbs /MakeProj", "" )
\r
29 devenv_rebuild g("ExeName")+".sln", g("Config")
\r
34 Sub Test_start( tests )
\r
35 get_DevEnvObj : If IsEmpty( GetVar( "devenv_ver_name" ) ) Then Skip
\r
37 Set g = tests.CurrentTest.Delegate
\r
38 Set ds = new CurDirStack
\r
41 r = RunProg( """..\..\"+ g("Config") +"\"+g("ExeName")+".exe"" a b", "" )
\r
48 Sub Test_clean( tests )
\r
49 get_DevEnvObj : If IsEmpty( GetVar( "devenv_ver_name" ) ) Then Skip
\r
51 Set g = tests.CurrentTest.Delegate
\r
52 r = RunProg( "cscript "+g("ExeName")+"_setup.vbs /Clean", "" )
\r
58 Sub Test_setup( tests ) : Pass : End Sub
\r
59 Sub Test_check( tests ) : Pass : End Sub
\r
70 '--- start of vbslib include ------------------------------------------------------
\r
72 '//
\82±
\82±
\82Ì
\93à
\95\94\82©
\82ç Main
\8aÖ
\90\94\82ð
\8cÄ
\82Ñ
\8fo
\82µ
\82Ä
\82¢
\82Ü
\82·
\81B
\r
73 '//
\82Ü
\82½
\81Ascriptlib
\83t
\83H
\83\8b\83_
\81[
\82ð
\92T
\82µ
\82Ä
\81Avbslib
\82ð
\83C
\83\93\83N
\83\8b\81[
\83h
\82µ
\82Ä
\82¢
\82Ü
\82·
\r
75 '// vbslib is provided under 3-clause BSD license.
\r
76 '// Copyright (C) 2007-2011 Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.
\r
78 Dim g_Vers : If IsEmpty( g_Vers ) Then
\r
79 Set g_Vers = CreateObject("Scripting.Dictionary") : g_Vers.Add "vbslib", 4.0
\r
80 Dim g_debug, g_debug_params, g_admin, g_vbslib_path, g_CommandPrompt, g_fs, g_sh, g_AppKey
\r
81 Dim g_MainPath, g_SrcPath, g_f, g_include_path, i, g_debug_tree, g_debug_process, g_b_compile_debug
\r
82 g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath
\r
83 SetupVbslibParameters
\r
84 Set g_fs = CreateObject( "Scripting.FileSystemObject" )
\r
85 Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory
\r
86 g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )
\r
87 For i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For
\r
88 g_vbslib_path = "..\" + g_vbslib_path : Next
\r
89 If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )
\r
90 g_sh.CurrentDirectory = g_f
\r
91 If i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_
\r
92 "Let's download vbslib "&g_Vers.Item("vbslib")&" and Copy scriptlib folder." : Stop : WScript.Quit 1
\r
93 Set g_f = g_fs.OpenTextFile( g_vbslib_path,,,-2 ): Execute g_f.ReadAll() : g_f = Empty
\r
94 If ResumePush Then On Error Resume Next
\r
96 ResumePop : On Error GoTo 0
\r
98 '---------------------------------------------------------------------------------
\r
100 Sub SetupDebugTools()
\r
102 SetBreakByFName Empty
\r
103 SetStartSectionTree ""
\r
106 Sub SetupVbslibParameters()
\r
107 '--- start of parameters for vbslib include -------------------------------
\r
108 '// g_Vers("OldMain") = 1
\r
109 g_vbslib_path = "scriptlib\vbs_inc.vbs"
\r
110 g_CommandPrompt = 1
\r
112 g_debug = 0 '// release:0, debug:99, -1:call SetupDebugTools
\r
113 '//
\82l
\82r
\83I
\83t
\83B
\83X
\82â
\83R
\83\93\83p
\83C
\83\89\82ª
\82 \82ê
\82Î
\81Ag_debug
\82ð 1
\88È
\8fã
\82É
\82·
\82é
\82Æ
\83f
\83o
\83b
\83K
\81[
\82ª
\8eg
\82¦
\82Ü
\82·
\81B
\r
114 '//
\83X
\83e
\83b
\83v
\8eÀ
\8ds
\82ð
\8aJ
\8en
\82·
\82é
\8fê
\8f\8a\82â
\81A
\95Ï
\90\94\82Ì
\92l
\82ð
\8am
\94F
\82µ
\82½
\82¢
\8fê
\8f\8a\82É
\81AStop
\96½
\97ß
\82ð
\8bL
\8fq
\82µ
\82Ä
\82
\82¾
\82³
\82¢
\81B
\r
116 '--- end of parameters for vbslib include ---------------------------------
\r
118 '--- end of vbslib include --------------------------------------------------------
\r