VirtualBox

Ignore:
Timestamp:
Jan 31, 2020 12:10:15 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135936
Message:

TestManager/readme.txt,db/Makefile.kmk: Detail the steps necessary to set up the test manager using MacPorts.

Location:
trunk/src/VBox/ValidationKit/testmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/db/Makefile.kmk

    r82800 r82938  
    3636
    3737GENERATED_FILES = TestManagerDatabaseComments.pgsql
    38 PSQL := $(firstword $(which $(foreach pgver, 95 94 93 92,psql$(pgver)) ) psql)
     38PSQL := $(firstword $(which $(foreach pgver, 16 15 14 13 12 10 11 95 94 93 92,psql$(pgver)) ) psql)
    3939ifeq ($(PSQL_DB_HOST),)
    4040 PSQL_DB_HOST := localhost # Use localhost if nothing else is set.
  • trunk/src/VBox/ValidationKit/testmanager/readme.txt

    r82811 r82938  
    7575
    7676
     77III. OS X version of the above manual setup using MacPorts:
     78
     79  - sudo ports install apache2 postgresql12 postgresql12-server py38-psycopg2 py38-pylint
     80    sudo port select --set python python38
     81    sudo port select --set python3 python38
     82    sudo port select --set pylint pylint38
     83
     84    Note! Replace the python 38 with the most recent one you want to use.  Same
     85          for the 12 in relation to postgresql.
     86
     87  - Do what the postgresql12-server notes says, at the time of writing:
     88    sudo mkdir -p /opt/local/var/db/postgresql12/defaultdb
     89    sudo chown postgres:postgres /opt/local/var/db/postgresql12/defaultdb
     90    sudo su postgres -c 'cd /opt/local/var/db/postgresql12 && /opt/local/lib/postgresql12/bin/initdb -D /opt/local/var/db/postgresql12/defaultdb'
     91    sudo port load postgresql12-server
     92
     93    Note! The postgresql12-server's config is 'trust' already, so no need to
     94          edit /opt/local/var/db/postgresql12/defaultdb/pg_hba.conf there.  If
     95          you use a different version, please check it.
     96
     97  - kmk load-testmanager-db
     98
     99  - Creating and loading a partial database dump as detailed above.
     100
     101  - Configure apache:
     102      - sudo joe /opt/local/etc/apache2/httpd.conf:
     103        - Uncomment the line "LoadModule cgi_module...".
     104        - At the end of the file add (edit paths):
     105            Define TestManagerRootDir "/Users/bird/coding/vbox/svn/trunk/src/VBox/ValidationKit/testmanager"
     106            Define VBoxBuildOutputDir "/tmp"
     107            Include "${TestManagerRootDir}/apache-template-2.4.conf"
     108      - Test the config:
     109          /opt/local/sbin/apachectl -t
     110      - So apache will find the right python add the following to
     111        /opt/local/sbin/envvars:
     112          PATH=/opt/local/bin:/opt/local/sbin:$PATH
     113          export PATH
     114      - Load the apache service (or reload it):
     115          sudo port load apache2
     116      - Give apache access to read everything under TestManagerRootDir:
     117          chmod -R a:rX /Users/bird/coding/vbox/svn/trunk/src/VBox/ValidationKit/testmanager
     118          MYDIR=/Users/bird/coding/vbox/svn/trunk/src/VBox/ValidationKit; while [ '!' "$MYDIR" '<' "$HOME" ]; do \
     119              chmod a+x "$MYDIR"; MYDIR=`dirname $MYDIR`; done
     120
     121  - Fix htpasswd file as detailed above and try the url (also above).
     122
    77123
    78124N.B. For developing tests (../tests/), setting up a local test manager will be
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette