Announcement

Collapse
No announcement yet.

Passmark scripting CLI files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Passmark scripting CLI files

    PassMark Forum,

    Passmark scripting code & CLI code examples:

    Is there a repository somewhere (HTTP, FTP, etc.) that contains PassMark
    script files, CLI examples and general PassMark code for Forum users to share code ?
    I am looking for sample solutions before just start writing these from scratch
    and usually forums have a place to share code where users can read and write to, etc.

    Thanks, Bill
    Last edited by blusche; May-24-2010, 10:22 PM. Reason: Make the subject line a little more descriptive.

  • #2
    We don't have such are repository. The help file (or User Guide) describes the scripting:
    http://passmark.com/ftp/BIT_Users_Guide_Ed6_0.pdf

    The Command line parameters for BurnInTest are described in the help file (or User Guide). Some additional examples are also in this document:
    http://passmark.com/ftp/bitproductionline_v6.pdf

    I will prepare some sample script files and post them here tomorrow.

    Comment


    • #3
      Here some sample BurnInTest scripts for BurnInTest v6.0. If other people also posted there scripts, I am sure others would find that useful.

      Some of these are a little contrived to demonstrate scripting.

      When multiple test runs are included in a script, it is recommended that Preferences->Logging is set to accumulate results.

      The configuration files loaded in these scripts are not included, but the configurations are just created by setting an configuration and specifying File->Save Test Configuration As...


      #############################################
      # Basic System Test Script - BurnInTest v6.x
      #
      # Author: Ian Robinson
      # PassMark Software
      # Date: 21 May 2008
      # Version: 1.0
      #############################################
      LOG "starting Basic system Test"
      #Run basic system tests for 15 minutes
      LOAD "Basic System.bitcfg"
      SETDURATION 15
      RUN CONFIG
      EXIT







      #############################################
      # Sample BIT sample script
      # Authors: Ian Robinson
      # Date: 17 January 2004 (updated 27 May 2010)
      # Requirements: BurnInTest V6.0 or above
      #############################################
      LOG "starting samplescript.bits"
      #############################################
      #Load config 1 test parameters
      #############################################
      LOAD "samplescript1.bitcfg"
      SETDURATION 1
      RUN CONFIG

      #############################################
      #Test sleep
      #############################################
      LOG "Sleep S1 D 60 start"
      SLEEP 10000
      EXECUTEWAIT "Sleeper.exe" -S1 -R 60 -N 1
      SLEEP 60000
      LOG "Sleep S1 R 60 complete"
      #############################################
      #Check individual tests sequentially
      # - configuration parameters previously
      # saved in samplescript1.bitcfg
      #############################################
      LOAD "samplescript1.bitcfg"
      SETDURATION 1
      LOG "Running Maths"
      RUN MATHS
      LOG "Running MMX"
      RUN MMX
      LOG "Running CD"
      RUN CD
      LOG "Running Disk"
      RUN DISK
      LOG "Running Memory"
      RUN MEMORY
      LOG "Running Parallel"
      RUN PARALLEL
      LOG "Running Serial"
      RUN SERIAL
      LOG "Running Sound"
      RUN SOUND
      LOG "Running USB"
      RUN USB
      LOG "Running 2D"
      RUN 2D
      LOG "Running 3D"
      RUN 3D
      #############################################
      #Check individual tests sequentially
      # - configuration parameters previously
      # saved in samplescript2.bitcfg
      #############################################
      LOAD "samplescript2.bitcfg"
      SETDURATION 2
      LOG "Running Maths"
      RUN MATHS
      RUN MMX
      LOG "Running CD"
      #############################################
      #Test Reboot
      #############################################
      REBOOT
      SLEEP 60000
      LOG "reboot 1 complete"
      #############################################
      #Check individual tests sequentially
      # - configuration parameters previously
      # saved in samplescript2.bitcfg
      #############################################
      LOAD "samplescript2.bitcfg"
      SETDURATION 2
      LOG "Running Maths"
      RUN MATHS
      RUN MMX
      LOG "Running CD"
      #############################################
      #Start up ModemTest
      # - COM port 1
      # - result file written to Current Working directory
      # - ModemTest to be closed manually
      #############################################
      EXECUTE "E:\program files\modemtest\modemtest.exe" /l 1 ModemTestResults.log
      #############################################
      #Delete any temporary REBOOT files
      #############################################
      REBOOTEND
      EXIT





      #############################################
      # Basic System Test Script
      #
      # Author: Ian Robinson
      # PassMark Software
      # Date: 21 May 2008
      # Version: 1.0
      #############################################
      LOG "starting Basic system Test"
      #############################################
      #Run basic system tests for 15 minutes
      #############################################
      LOG "Starting basic test"
      LOAD "Basic System.bitcfg"
      SETDURATION 15
      RUN CONFIG
      #############################################
      #Check individual tests
      #############################################
      LOG "Running individual tests"
      LOAD "Basic System.bitcfg"
      LOG "Running CPU for 2 minutes"
      SETDURATION 2
      SETCYCLES 0
      SETDUTYCYCLE CPU 100
      RUN CPU
      LOG "Running Memory for each test pattern"
      SETDURATION 0
      SETCYCLES 7
      SETDUTYCYCLE MEMORY 100
      RUN MEMORY
      LOG "Running Sound for 1 minute"
      SETDURATION 1
      SETCYCLES 0
      SETDUTYCYCLE SOUND 100
      RUN SOUND
      LOG "Running 2D for 1 minute"
      SETDURATION 1
      SETCYCLES 0
      SETDUTYCYCLE 2D 100
      RUN 2D
      LOG "Running 3D for 1 minute"
      SETDURATION 1
      SETCYCLES 0
      SETDUTYCYCLE 3D 100
      RUN 3D
      #Run 100 disk cycles on all disks with a file size of 1%
      LOG "Running Disk for 1 complete pass"
      SETDURATION 0
      SETCYCLES 100
      SETDUTYCYCLE DISK 100
      RUN DISK
      #LOG "Running CD for 1 minute"
      #SETDURATION 15
      #SETCYCLES 0
      #SETDUTYCYCLE CD 100
      #RUN CD
      #LOG "Running Parallel for 1 minute"
      #SETDURATION 1
      #SETCYCLES 0
      #SETDUTYCYCLE PARALLEL 100
      #RUN PARALLEL
      #LOG "Running Serial for 1 minute"
      #SETDURATION 1
      #SETCYCLES 0
      #SETDUTYCYCLE SERIAL 100
      #RUN SERIAL
      #LOG "Running USB for 1 minute"
      #SETDURATION 1
      #SETCYCLES 0
      #SETDUTYCYCLE USB 100
      #RUN USB






      #############################################
      # Test general and Serial port (different settings per COM port)
      # Authors: Ian Robinson
      # Date: 12 December 2009
      #############################################
      LOAD "COM_config1.bitcfg"
      SETDURATION 15
      RUN SERIAL
      LOAD "COM_config2.bitcfg"
      SETDURATION 15
      RUN SERIAL
      LOAD "COM_config3.bitcfg"
      SETDURATION 15
      RUN SERIAL





      #############################################
      # Test USB ports (6 ports - 1 loopback plug)
      # Authors: Ian Robinson
      # Date: 12 December 2009
      #############################################
      LOOP 6
      {
      SETCYCLES 1
      MESSAGE "PLUG IN USB LOOPBACK PLUG"
      RUN USB
      }





      #############################################
      # 3D and loop test script
      #
      # bit.exe /s 3D.bits /r /p
      #############################################
      LOOP 100
      {
      SETDURATION 0.5
      LOG "Running 3D for 0.5 minute"
      RUN 3D
      }
      EXIT






      #############################################
      # Port test script
      #############################################
      LOAD "Test_01.bitcfg"
      MESSAGE "Ensure all loopbacks and test cables are connected."
      SETCYCLES 1
      RUN USB
      RUN DISK
      RUN NETWORK
      RUN SERIAL
      RUN PARALLEL
      SETDURATION 0.2
      RUN SOUND
      LOAD "Test_02.bitcfg"
      SETDURATION 0.2
      RUN CD
      LOAD "Test_03.bitcfg"
      SETDURATION 0.2
      RUN config
      MESSAGE "Remove PCMCIA from slot and insert in to next slot. Wait for the card to be recognised. Close any windows that open."
      LOAD "Test_04.bitcfg"
      SETDURATION 0.2
      RUN config
      MESSAGE "Be sure to remove DVD from from DVDROM drive and remove the PCMCIA card"
      EXIT






      #############################################
      # Test across Sleep states and reboot
      #############################################
      #Check sleep and reboot
      LOG "Check sleeps and reboots"
      LOG "Sleep S1 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S1
      LOG "Sleep S1 D 60 complete"
      LOG "Sleep S3 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S3
      LOG "Sleep S3 D 60 complete"
      LOG "Sleep S4 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S4
      LOG "Sleep S4 D 60 complete"
      REBOOT
      LOG "reboot 1 complete"
      MESSAGE "If the sleeps and Reboots were successful press OK to continue"
      #Check individual test
      LOAD "Test01.bitcfg"
      SETDURATION 1
      LOG "Running CPU"
      RUN CPU
      LOG "Running Memory"
      RUN MEMORY
      LOG "Running CD"
      RUN CD
      LOG "Running Disk"
      RUN DISK
      LOG "Running Parallel"
      RUN PARALLEL
      LOG "Running Serial"
      RUN SERIAL
      LOG "Running Sound"
      RUN SOUND
      LOG "Running USB"
      RUN USB
      LOG "Running 2D"
      RUN 2D
      LOG "Running 3D"
      RUN 3D
      #Check simulataneous tests across sleeps and reboots
      LOAD "Test02.bitcfg"
      SETDURATION 5
      LOG "Starting simulataneous tests across sleeps and reboots"
      LOG "Starting run 1"
      RUN CONFIG
      LOG "Sleep S1 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S1
      LOG "Sleep S1 D 60 complete"
      LOG "Starting run 2"
      RUN CONFIG
      LOG "Sleep S3 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S3
      LOG "Sleep S3 D 60 complete"
      LOG "Starting run 3"
      RUN CONFIG
      LOG "Sleep S4 D 60 start"
      EXECUTEWAIT "Sleeper.exe" /D 60 /S4
      LOG "Sleep S4 D 60 complete"
      LOG "Starting run 4"
      RUN CONFIG
      REBOOT
      EXIT






      #############################################
      # Test with logging
      #############################################
      SETSERIAL "1234567890"
      SETMACHINETYPE "ABCDEFG"
      SETLOG "C:\BurnInTest\1234567890.htm"
      RUN CONFIG "C:\BurnInTest\Test01.bitcfg"
      RUN CONFIG "C:\BurnInTest\Test02.bitcfg"
      RUN CONFIG "C:\BurnInTest\Test03.bitcfg"
      EXIT

      #############################################
      # Network Test
      #############################################
      LOG "starting Network test"
      LOG "Step 1"
      SLEEP 1000
      LOAD "network.bitcfg"
      SETDURATION 10.0
      #Run network test individually
      LOOP 2
      {
      LOG "Running network for 10 minutes"
      RUN NETWORK
      }
      #Run all configured tests with the network test
      LOAD "AllTests.bitcfg"
      SETDURATION 10
      RUN CONFIG
      EXIT
      Last edited by Ian (PassMark); May-27-2010, 12:44 AM. Reason: formatting

      Comment


      • #4
        Hi,

        are there meantime some more script examples available (on Burnintest 8.0)? Would be very useful. Thx

        Comment


        • #5
          The BurnInTest help file includes a description and example of all the scripting commands:
          Test automation and productivity -> Scripting a series of tests

          This is also included in section 10.3 of the BurnInTest user's guide:
          http://www.passmark.com/ftp/BIT_Users_Guide_Ed8_0.pdf

          If there is something else you need in regards to scripting, please let me know specifically what you are planning to script and I can look at adding it to the documentation.

          Comment


          • #6
            I want to set the SETNOTES via bit-script-input.txt file.
            But i want a word wrap between the notes.
            (So i can log the serialnumbers and components in the notes)
            With the preferences tab it isn't a problem, but via script i can't send a word wrap.

            Comment


            • #7
              This is not currently possible. I'll have a look at changing the script command to allow this. I'll update this post when I have more information.

              Comment


              • #8
                We will add an option to specify a new line break using "\n" in the next minor build of BurnInTest, 8.0.1043, currently due for release 22 May. e.g.
                SETNOTES "line 1\nline 2\nline 3"

                Comment


                • #9
                  BurnInTest 8.0.1043 is now available:
                  http://www.passmark.com/download/bit_download.htm

                  Comment


                  • #10
                    Thanks Ian,

                    I will try it in the next time when i upgrade.

                    But I have another problem with scripting.

                    I want to script the networktest.
                    In fact i want to test the nics with a internal loopback.

                    The Script looks like this:
                    #Settest to be performed
                    #################
                    SETTEST NETWORK

                    #SET DUTY CYCLES
                    #############
                    SETDUTYCYCLE NETWORK 85



                    #Configuring network test parameters
                    #########################
                    SETNETWORK ALL LOOPBACK
                    SETNETWORK ERROR everypacket TIMEOUT 4000
                    SETNETWORK BLUETOOTH no


                    But when i start the script it won't test network adapters.

                    If tried with
                    SETNETWORK ALL YES
                    but that didn't worked.

                    so i tried to add the ports manually
                    SETNETWORK ADD1 "127.0.0.1"
                    With this it would test the NIC but i get just errors.

                    When i set the parameters in the gui to loopback it would test the first nic with internal loopback.

                    How can i set the internal loopback test for network in the script?

                    Thanks for reply.

                    Comment


                    • #11
                      Yes. I can confirm this looks like a bug. I will investigate further and post back here.

                      Comment


                      • #12
                        We do recommend using an external test address like a router or server on your test network, rather then the internal loopback.

                        The ALL keyword is used for historical purposes. It allows the Standard Network test mode to be set. "TESTMODE" would now be a better keyword. In the case of the ALL LOOPBACK keywords, this will set the test mode to Loopback and Network Address 1 to 127.0.0.1 (and blank all other Network Addresses). It won't run a test of all NICs to the loopback. i.e. it works like the non-scripted version of the test.

                        There is a bug with "ALL LOOPBACK" in that it is blanking all the Network address's configuration, and hence the test won't run. We will release a new build of BurnInTest 8.0.1046 later this month with a correction for this.

                        In the meantime, you could configure the settings you need with BurnInTest Prefernces, save the configuration file, then in the script just load the configuration file and run the test.

                        Comment


                        • #13
                          Thanks Ian.

                          Yes thath would be a better test but is not always possible.
                          But if test with an external adress, does this also support DNS? f.e. SETNETWORK ADD1 "server"
                          And is it possible to set the same adress for all ports via ALL command?
                          f.e. SETNETWORK ALL yes ETHERNET server
                          So the script can automatically detect the ports and all ports are sending a ping to the same adress

                          Comment


                          • #14
                            The BurnInTest standard network test will resolve a name via DNS.
                            You can't set the same address via the "ALL" command, as this sets the test mode. You could set it to SETNETWORK ALL YES, for all network ports. In this case, you would still need to set a network address for each NIC you want to test. e.g. for test 2 NICs:
                            SETNETWORK ALL YES
                            SETNETWORK ADD1 "<server>"
                            SETNETWORK ADD2 "<server>"

                            In this case, BurnInTest will detect all network ports and run 2 tests from NIC 1 to <server> and NIC 2 to <server>.

                            If you are testing with high load, I would not recommend having lots of NICs testing to the same server.

                            Comment


                            • #15
                              Hi Ian,

                              Is there a scripting or a general option to exclude some errors?
                              e.g. The serialports test is running, and has after 25 million operations 1 fail.
                              Is there a option to specify some errors? So i can say if there are less then 5 or 10 errors in the serialports test then burnintest should ignore them? (so the test can pass anyway?)
                              Something like SETSERIALPORTS MAXERR 5 (?) or SETSERIALPORTS ALLOW_ERR 5 ?
                              Thanks.

                              Best regards

                              Comment

                              Working...
                              X