====== Install ======

**To do:**
  * modify ifc to exclude zoneinfo, abtpay, and doit
  * upload new fl files
  * put fl.dat into testmaps.dat

[[git|git]]

<code>
$ xauth list $DISPLAY
You'll get something like

somehost.somedomain:10 mit-magic-cookie-1 4d22408a71a55b41ccd1657d377923ae

Then, after having done su, tell the new user what the cookie is:

$ xauth add somehost.somedomain:10 MIT-MAGIC-COOKIE-1 4d22408a71a55b41ccd1657d377923ae

xauth add apollo/unix:0  MIT-MAGIC-COOKIE-1  b4a0a5afb283a1bfaeb39690b5bc848b

on AIX use sudo xauth add ${xauth list $DISPLAY}


(just copy and paste the output of the above 'xauth list' onto 'xauth add') That's it. Now, you should be able to start any X application.
</code>

sunit TestCase buildSuite run. TestCase buildSuite randomRun: 1234

bom packaged image needs
nodialog
pay file
abt.ini
ease40.dll
esvm40.dll
ifc.icx
current.bom
run as nodialog -iifc.icx -ini:abt.ini "C:\avast\363" "standalone.bom" -lCON

run packaged image esvio abc.icx -iabc.ini sourceDir bomfile

Ubuntu needs this: sudo apt-get install libc6:i386

I've created you a new repository group within the vastinstaller project.
Repositories can be reorganized pretty easily so we can move this elsewhere later if need be.

<del>Go to the following URL: https://inst.kilnhg.com/Code/vastinstaller/Testing/devel
This is where you repo lives.

Because it's empty, you will need to clone it first
hg clone https://inst.kilnhg.com/Code/vastinstaller/Testing/devel

Then put your files in there and commit to your local repository on your machine
hg commit -A

Then push the changes up to the remote repository on Kiln
hg push
</del>
  * git page is 1152
  * git rm removes files and marks them for deletion.
  * removing files using explorer marks them for deletion.  must do rm add afterwards
  * git add . adds everything
  * git commit -am "new directory"
  * git push
  * https://inst.fogbugz.com/default.asp?W1152
  * First you have to ‘load’ the desired version of **common** into your project:
  * 1) cd into the common folder
  * 2) execute git checkout master
  * 3) execute git pull

  * 60054 is readme rename case
 
  * latest git is here: git clone https://inst.kilnhg.com/Code/vastbuild/Testing/stable.git - 6/22/16

  * importer.exe -z.target=localhost::d:\vamgr\manager\mgr80.dat -z.source=e:\tmp\myfeat.dat
  *   importer.exe "-z.target=c:\Program Files\Instantiations\VA Smalltalk\8.5\manager\mgr80-working.dat" "-z.source=c:\Program Files\Instantiations\VA Smalltalk\8.5\manager\mgr85.dat"
  *   importer.exe -z.target=zot::d:\vamgr\manager\mgr85.dat -z.sourcedir=e:\tmp\featureDir -z.silent
               
 
  * Now you should have the updated files downloaded.  
  * Next you want to ‘release’ the new version of common in to your test project:
  * 1) cd into your root test folder (devel).
  * 2) execute git status  - should show that common has been modified.
  * 3) git add common

  * **vastSharedStorage**
  * test/featureLoad with sub dirs linux windows and xd
  * test/payfiles
  * test/testMaps

  * to load rla, load the sst feature first
  * old bom files are /mnt/sdb1/miscellaneous/SmalltalkTools/InstallationFileChecker/platforms
  * to generate bom files, do InstallationFileChecker createBOMFile
  * copy platorm/installType.bom to rla dir (avast\345rla) common.bom
  * copy bom.cnf to 345ral.cnf
  * run 345rla icx with 345rla ini in 345rla dir using 345rla.cnf
  * BOM match on 'matches all items'

  * cmdStd = ('C:\Program Files (x86)\Instantiations\VA Smalltalk\8.6\abt.exe' '-i/avast/355/newimage863/abt.icx' '-ini:/avast/355/newimage863/abt.ini' '-nosplash' '-lCON')

  * "TestSuite (Repeatably) Random Run"
  * | seed randomizer allTests testSuite result | 
  * seed := 1023434.0.
  * allTests := OrderedCollection new.
  * testSuite := TestCase buildSuite.
  * TranscriptTTY default show: (testSuite randomRun: seed) printString;cr.


  * RlaClient getLatestPackage: aPackageName serverAddress: aServerIPAddress localAddress: aLocalIPAddress
  * RlaClient getLatestPackage: 'Test' serverAddress: '192.168.10.132' localAddress: SciSocketManager default getHostName
  * Maps in test package are:
  *  'Test ENVY/Image Base' ;
  *  'ENVY/Image Automated Test Suites';
  *  'ENVY/Image Interactive Test Suites';
  *  'ENVY/Image Examples';
  *  'Test Feature Load';
  *  'Instantiations ABT Development Preload';

  * to change library do: (EmLibrary open: 'z:\Common\Managers\MainManager.dat' serverAddress: nil) becomeDefault. 
  * to load a map: (EmConfigurationMap editionsFor:'Instantiations Installation File Checker' ) first load or loadWithRequiredMaps


  * pywinauto http://pywinauto.pbworks.com/w/page/9546216/FrontPage
  * https://github.com/pywinauto/pywinauto/issues/120

  * uac - https://www.autoitscript.com/forum/topic/167727-script-not-working-for-uac/

  * online regex tester - https://regex101.com/
 
  * dir /b /od sorts a directory with latest file last
  * new sunit: https://drive.google.com/a/instantiations.com/folderview?id=0B1gQNCcsi589a1NDQmhFM2ZYMnc&usp=sharing
  * this loads the latest map: (EmConfigurationMap editionsFor: 'Test Feature Load') first loadWithTracing: true.
  * aflt 499 and 798
  * hgrc - http://help.fogcreek.com/7961/installing-kilns-mercurial-extensions-manually?se_found=1


  * 58387 Silent Installation of VAST
  * http://www.silentinstall.org/InstallShield
  * http://stackoverflow.com/questions/1547809/extract-msi-from-exe

  * grep  -Uc  --max-count=1 '\\r\\n'
  * grep   -Uc  --max-count=1 $'\r$' $
  * grep -IUlr $'\r'
  * grep -lUP '\r$'
  * grep -P '\x0d\x0a'
  * grep -P '\r$' file
  * grep -Uc --max-count=1 '\r\n' ${file} )
  * grep -Uc --max-count=1 \\r ${file} **<------------------- WORKS!**


  * "VA Smalltalk 8.6.3.exe" /s /v"/qn INSTALLENVSHORTCUT=1 USERNAME=sberman
  * MSI (c) (A8:D4) [17:27:58:901]: PROPERTY CHANGE: Modifying _IsMaintenance property. Its current value is 'Reinstall'. Its new value: 'Remove'.
  * "VA Smalltalk 8.6.3.exe" /s /v"/qn USERNAME=sberman REMOVE=ALL removes all but manager



  * Look for  "Product: VA Smalltalk -- Configuration completed successfully" in msi*.log in /users/donald/appdata/local/temp
  * 
  * https://cmake.org/Wiki/CMake_Scripting_Of_CTest
  * CMAKE_CURRENT_SOURCE_DIR is install/test (root)
  * CMAKE_CURRENT_BINARY_DIR is install/build/test
  * where is ${CMAKE_RUNTIME_OUTPUT_DIRECTORY ???????????????

  * execute_process(COMMAND ${CMAKE_COMMAND} only does certain commands. try it with unzip somefile.zip and it will fail. 
  * http://stackoverflow.com/questions/3804577/have-bash-script-answer-interactive-prompts
  * seth;s today macro is in C:\code\instantiations\dino2-devel\vast-vm\common\cmake\macros\Today.cmake
  * print a variable: message(STATUS "VM_BUmmmILD = "${git_result})
  * make clean: http://stackoverflow.com/questions/9680420/looking-for-a-cmake-clean-command-to-clear-up-cmake-output?rq=1
  * get all the cmake variables and print them: <code>get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
    message(STATUS "${_variableName}=${${_variableName}}")
endforeach()</code>
  * find out what platform: <code>cat /etc/issue
Fedora release 22 (Twenty Two)
Kernel \r on an \m (\l)

cat /proc/version
Linux version 4.0.4-301.fc22.i686 (mocbuild@bkernel01.phx2.fedoraproject.org) (
gcc version 5.1.1 20150422 (Red Hat 5.1.1-1) (GCC ) #1 SMP Thu May 21 13:43:18
UTC 2015</code>
  * cmake pass arguments<code>set (git_cmd "git")
set (git_arg "--version")
message(STATUS "git cmd: ${git_cmd}")
execute_process(COMMAND ${git_cmd} ${git_arg}
  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
  RESULT_VARIABLE git_result
  OUTPUT_VARIABLE git_ver)
  
CMAKE_PROGRAM -E someCommandCmakeUnderstands
chdir dir cmd [args]...   - run command in a given directory
  rename oldname newname    - rename a file or directory (on one volume)
  copy file destination     - copy file to destination (either file or
directory)
  copy_if_different in-file out-file  - copy file if input has changed
  copy_directory source destination   - copy directory 'source' content to
directory 'destination'
  compare_files file1 file2 - check if file1 is same as file2
  echo [string]...          - displays arguments as text
  echo_append [string]...   - displays arguments as text but no new line
  environment               - display the current enviroment
  make_directory dir        - create a directory
  md5sum file1 [...]        - compute md5sum of files
  remove_directory dir      - remove a directory and its contents
  remove [-f] file1 file2 ... - remove the file(s), use -f to force it
  tar [cxt][vfz] file.tar file/dir1 file/dir2 ... - create a tar archive
  time command [args] ...   - run command and return elapsed time
  touch file                - touch a file.
  touch_nocreate file       - touch a file but do not create it.
  build build_dir           - build the project in build_dir.
  write_regv key value      - write registry value
  delete_regv key           - delete registry value
  comspec                   - on windows 9x use this for RunCommand

message(STATUS "git ver[${git_result}]: ${git_ver}")</code>
  * recursive clean http://stackoverflow.com/questions/16249663/improving-cleaning-of-cmake-build-directory
  * useful cmake vaiables: https://cmake.org/Wiki/CMake_Useful_Variables/Logging_Useful_Variables
  * -- BUILDNAME=Linux-
  * -- BUILD_NAME_SYSTEM_NAME=Linux
  * -- BUILD_TESTING=ON
  * -- BZRCOMMAND=BZRCOMMAND-NOTFOUND
  * -- BZR_UPDATE_OPTIONS=
  * **-- CMAKE_BINARY_DIR=/home/donald/install/build**
  * -- CMAKE_CACHEFILE_DIR=/home/donald/install/build
  * -- CMAKE_CACHE_MAJOR_VERSION=2
  * -- CMAKE_CACHE_MINOR_VERSION=8
  * -- CMAKE_CACHE_PATCH_VERSION=12
  * -- CMAKE_CFG_INTDIR=.
  * -- CMAKE_COLOR_MAKEFILE=ON
  * -- CMAKE_COMMAND=/usr/bin/cmake
  * -- CMAKE_CPACK_COMMAND=/usr/bin/cpack
  * -- CMAKE_CROSSCOMPILING=FALSE
  * -- CMAKE_CTEST_COMMAND=/usr/bin/ctest
  * **-- CMAKE_CURRENT_BINARY_DIR=/home/donald/install/build/test**
  * **-- CMAKE_CURRENT_LIST_DIR=/home/donald/install/test**
  * **-- CMAKE_CURRENT_LIST_FILE=/home/donald/install/test/CMakeLists.txt**
  * **-- CMAKE_CURRENT_SOURCE_DIR=/home/donald/install/test**
  * -- CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES=/usr/include
  * -- CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES=/usr/include
  * -- CMAKE_DL_LIBS=dl
  * -- CMAKE_ECLIPSE_VERSION=4.2
  * -- CMAKE_EXECUTABLE_SUFFIX=
  * -- CMAKE_EXE_EXPORTS_C_FLAG=-Wl,--export-dynamic
  * -- CMAKE_EXE_LINK_DYNAMIC_C_FLAGS=-Wl,-Bdynamic
  * -- CMAKE_EXE_LINK_STATIC_C_FLAGS=-Wl,-Bstatic
  * -- CMAKE_EXPORT_COMPILE_COMMANDS=OFF
  * -- CMAKE_FILES_DIRECTORY=/CMakeFiles
  * -- CMAKE_FIND_LIBRARY_PREFIXES=lib
  * -- CMAKE_FIND_LIBRARY_SUFFIXES=.so;.a
  * -- CMAKE_GENERATOR=Unix Makefiles
  * -- CMAKE_GENERATOR_TOOLSET=
  * -- CMAKE_HOME_DIRECTORY=/home/donald/install
  * -- CMAKE_HOST_PATH=/usr/bin
  * -- CMAKE_HOST_SYSTEM=Linux-3.19.0-32-generic
  * -- CMAKE_HOST_SYSTEM_NAME=Linux
  * -- CMAKE_HOST_SYSTEM_PROCESSOR=x86_64
  * -- CMAKE_HOST_SYSTEM_VERSION=3.19.0-32-generic
  * -- CMAKE_HOST_UNIX=1
  * -- CMAKE_INCLUDE_FLAG_C=-I
  * -- CMAKE_INCLUDE_FLAG_C_SEP=
  * -- CMAKE_INSTALL_DEFAULT_COMPONENT_NAME=Unspecified
  * -- CMAKE_INSTALL_PREFIX=/usr/local
  * -- CMAKE_INSTALL_SO_NO_EXE=1
  * -- CMAKE_LIBRARY_ARCHITECTURE_REGEX=[a-z0-9_]+(-[a-z0-9_]+)?-linux-gnu[a-z0-9_]*
  * -- CMAKE_LIBRARY_PATH_FLAG=-L
  * -- CMAKE_LIBRARY_PATH_TERMINATOR=
  * -- CMAKE_LINK_LIBRARY_FLAG=-l
  * -- CMAKE_LINK_LIBRARY_SUFFIX=
  * -- CMAKE_MAJOR_VERSION=2
  * -- CMAKE_MAKE_PROGRAM=/usr/bin/make
  * -- CMAKE_MATCH_0=Make
  * -- CMAKE_MATCH_1=Make
  * -- CMAKE_MINIMUM_REQUIRED_VERSION=2.8.8
  * -- CMAKE_MINOR_VERSION=8
  * -- CMAKE_MODULE_PATH=/home/donald/install/common/cmake/modules;/home/donald/install/common/cmake/macros
  * -- CMAKE_NUMBER_OF_LOCAL_GENERATORS=2
  * -- CMAKE_PARENT_LIST_FILE=/home/donald/install/test/CMakeLists.txt
  * -- CMAKE_PATCH_VERSION=12
  * -- CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES=/lib;/usr/lib;/usr/lib32;/usr/lib64
  * -- CMAKE_PLATFORM_INFO_DIR=/home/donald/install/build/CMakeFiles/2.8.12.2
  * -- CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME=1
  * -- CMAKE_PROJECT_NAME=install
  * -- CMAKE_ROOT=/usr/share/cmake-2.8
  * -- CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS=-shared
  * -- CMAKE_SHARED_LIBRARY_C_FLAGS=
  * -- CMAKE_SHARED_LIBRARY_LINK_C_FLAGS=
  * -- CMAKE_SHARED_LIBRARY_LINK_DYNAMIC_C_FLAGS=-Wl,-Bdynamic
  * -- CMAKE_SHARED_LIBRARY_LINK_STATIC_C_FLAGS=-Wl,-Bstatic
  * -- CMAKE_SHARED_LIBRARY_PREFIX=lib
  * -- CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG=-Wl,-rpath-link,
  * -- CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG=-Wl,-rpath,
  * -- CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP=:
  * -- CMAKE_SHARED_LIBRARY_SONAME_C_FLAG=-Wl,-soname,
  * -- CMAKE_SHARED_LIBRARY_SUFFIX=.so
  * -- CMAKE_SHARED_MODULE_LINK_DYNAMIC_C_FLAGS=-Wl,-Bdynamic
  * -- CMAKE_SHARED_MODULE_LINK_STATIC_C_FLAGS=-Wl,-Bstatic
  * -- CMAKE_SHARED_MODULE_PREFIX=lib
  * -- CMAKE_SHARED_MODULE_SUFFIX=.so
  * -- CMAKE_SKIP_INSTALL_RPATH=NO
  * -- CMAKE_SKIP_RPATH=NO
  * **-- CMAKE_SOURCE_DIR=/home/donald/install**
  * -- CMAKE_STATIC_LIBRARY_PREFIX=lib
  * -- CMAKE_STATIC_LIBRARY_SUFFIX=.a
  * -- CMAKE_SYSTEM=Linux-3.19.0-32-generic
  * -- CMAKE_SYSTEM_INCLUDE_PATH=/usr/include/w32api;/usr/X11R6/include;/usr/include/X11;/usr/pkg/include;/opt/csw/include;/opt/include;/usr/openwin/include
  * -- CMAKE_SYSTEM_INFO_FILE=Platform/Linux
  * -- CMAKE_SYSTEM_LIBRARY_PATH=/usr/lib/w32api;/usr/X11R6/lib;/usr/lib/X11;/usr/pkg/lib;/opt/csw/lib;/opt/lib;/usr/openwin/lib
  * -- CMAKE_SYSTEM_LOADED=1
  * -- CMAKE_SYSTEM_NAME=Linux
  * -- CMAKE_SYSTEM_PREFIX_PATH=/usr/local;/usr;/;/usr;/usr/local
  * -- CMAKE_SYSTEM_PROCESSOR=x86_64
  * -- CMAKE_SYSTEM_PROGRAM_PATH=/usr/pkg/bin
  * -- CMAKE_SYSTEM_SPECIFIC_INFORMATION_LOADED=1
  * -- CMAKE_SYSTEM_VERSION=3.19.0-32-generic
  * -- CMAKE_TESTING_ENABLED=1
  * -- CMAKE_TWEAK_VERSION=2
  * -- CMAKE_UNAME=/bin/uname
  * -- CMAKE_USE_RELATIVE_PATHS=OFF
  * -- CMAKE_VERBOSE_MAKEFILE=FALSE
  * -- CMAKE_VERSION=2.8.12.2
  * -- COMPRESS_SUBMISSION=ON
  * -- COVERAGE_COMMAND=/usr/bin/gcov
  * -- COVERAGE_EXTRA_FLAGS=-l
  * -- CTEST_SUBMIT_RETRY_COUNT=3
  * -- CTEST_SUBMIT_RETRY_DELAY=5
  * -- CVSCOMMAND=CVSCOMMAND-NOTFOUND
  * -- CVS_UPDATE_OPTIONS=-d -A -P
  * -- DART_COMPILER=unknown
  * -- DART_CXX_NAME=
  * -- DART_NAME_COMPONENT=NAME
  * -- DART_TESTING_TIMEOUT=1500
  * -- DEFAULT_CTEST_CONFIGURATION_TYPE=Release
  * -- DROP_METHOD=http
  * -- GITCOMMAND=GITCOMMAND-NOTFOUND
  * -- HGCOMMAND=/usr/bin/hg
  * -- MAKECOMMAND=/usr/bin/make -i
  * -- MAKECOMMAND_DEFAULT_VALUE=/usr/bin/make -i
  * -- MEMORYCHECK_COMMAND=MEMORYCHECK_COMMAND-NOTFOUND
  * -- MEMORYCHECK_SUPPRESSIONS_FILE=
  * -- NIGHTLY_START_TIME=00:00:00 EDT
  * -- PROJECT_BINARY_DIR=/home/donald/install/build
  * -- PROJECT_NAME=install
  * -- PROJECT_SOURCE_DIR=/home/donald/install
  * -- PURIFYCOMMAND=
  * -- RUN_CONFIGURE=ON
  * -- SCPCOMMAND=/usr/bin/scp
  * -- SITE=LM-17
  * -- SLURM_SBATCH_COMMAND=SLURM_SBATCH_COMMAND-NOTFOUND
  * -- SLURM_SRUN_COMMAND=SLURM_SRUN_COMMAND-NOTFOUND
  * -- SVNCOMMAND=SVNCOMMAND-NOTFOUND
  * -- SVN_UPDATE_OPTIONS=
  * -- UNIX=1
  * -- UPDATE_COMMAND=/usr/bin/hg
  * -- UPDATE_OPTIONS=
  * -- UPDATE_TYPE=hg
  * -- VM_ENABLE_GCC_REG_INTRINSICS=FALSE
  * -- VM_GC_TRACING=OFF
  * -- _CMAKE_INSTALL_DIR=/usr
  * -- _INCLUDED_SYSTEM_INFO_FILE=/usr/share/cmake-2.8/Modules/Platform/Linux.cmake
  * -- __UNIX_PATHS_INCLUDED=1
  * -- __conf_types=
  * -- _update_type=hg
  * -- ctests_EXES=
  * -- ctests_PUBLIC_INCLUDES=/home/donald/install/test/ctests/include
  * -- exeheadless_NAME=esnx
  * -- exeui_NAME=es
  * -- ico_LIB_NAME=abtico50
  * **-- install_BINARY_DIR=/home/donald/install/build**
  * **-- install_SOURCE_DIR=/home/donald/install**
  * -- mode=
  * -- testtype=
  * -- type=
  * -- vast_LONG_COPYRIGHT=(C) Copyright Instantiations 1994, .  All rights reserved.\n(C) Copyright International Business Machines Corp. 1994, 2006.  All rights reserved.
  * -- vast_PRODUCT_STATUS=Internal
  * -- vast_PRODUCT_SUBDIR=8.6
  * -- vast_PRODUCT_SUFFIX=86
  * -- vast_PRODUCT_VERSION=8.6.0.100
  * -- vast_PRODUCT_VERSION_FOR_WINDOWS_DEF=8,6,0,100
  * -- vast_PRODUCT_VERSION_MAJOR=8
  * -- vast_PRODUCT_VERSION_MINOR=6
  * -- vast_PRODUCT_VERSION_MOD=0
  * -- vast_SHORT_COPYRIGHT=(C) Copyright Instantiations 1994, 
  * -- vast_VM_BUILD=100
  * -- vast_VM_EXTRA_VERSION_STRING=
  * -- vast_VM_SUFFIX=40
  * -- vast_VM_VERSION=4.0.0.100
  * -- vast_VM_VERSION_FOR_WINDOWS_DEF=4,0,0,100
  * -- vast_VM_VERSION_MAJOR=4
  * -- vast_VM_VERSION_MINOR=0
  * -- vast_VM_VERSION_REV=0
  * <code> file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/support/zoneInfo 
       DESTINATION ${CMAKE_CURRENT_BINARY_DIR})  </code>
       
  * <code>configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dinoTestSuiteUnix.icx
                 ${CMAKE_CURRENT_BINARY_DIR}/dinoTestSuite.icx
                 COPYONLY)  </code>