83 lines
2.6 KiB
Text
83 lines
2.6 KiB
Text
# The MIT License (MIT)
|
|
#
|
|
# Copyright (C) 2026 Scott Duensing
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to
|
|
# deal in the Software without restriction, including without limitation the
|
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
# sell copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
# IN THE SOFTWARE.
|
|
|
|
# sdk.scr -- the SDK template projects work on DOS.
|
|
#
|
|
# Needs the packages sdkTest.sh builds (SDK_PKG_OUT=<staged DVX dir>
|
|
# src/test/sdk/sdkTest.sh ROOT installs them under vendor sdktest). That
|
|
# DVX boots at all shows the template widget and library load: their ABI
|
|
# stamps and symbols passed the loader. The C program must log its start,
|
|
# read its greeting resource and open its help on F1; the BASIC program
|
|
# must open and close; Program Manager and the DVX BASIC toolbox show the
|
|
# templates' own icons.
|
|
TIMEOUT 120
|
|
WAITWIN "Program Manager"
|
|
MOVE 639 479
|
|
# Program Manager's icons come in a few a frame (the first start has no
|
|
# icon cache yet, and they come slower once a program runs); the shots
|
|
# have them all, so they are in before the program starts
|
|
WAIT 60
|
|
|
|
LAUNCH apps/sdktest/sdkApp/sdkApp.app
|
|
WAITWIN "SdkApp"
|
|
WAITLOG "sdkApp: started from"
|
|
WAIT 10
|
|
SHOT sdkapp
|
|
KEY Alt+G
|
|
WAITLOG "sdkApp: greeting resource found"
|
|
WAIT 10
|
|
SHOT sdkgreet
|
|
KEY Enter
|
|
WAIT 10
|
|
KEY F1
|
|
WAITWIN "* - DVX Help"
|
|
WAIT 20
|
|
SHOT h-sdkapp
|
|
KEY Alt+F4
|
|
WAITNOWIN "* - DVX Help"
|
|
WAIT 10
|
|
KEY Alt+F4
|
|
WAITNOWIN "SdkApp"
|
|
|
|
LAUNCH apps/sdktest/sdkBas/sdkBas.app
|
|
WAITWIN "SdkBas"
|
|
WAIT 10
|
|
SHOT sdkbas
|
|
KEY Alt+F4
|
|
WAITNOWIN "SdkBas"
|
|
|
|
# The template widget shows its own icon in the DVX BASIC toolbox (the
|
|
# templates used to ship the red-X "no icon" placeholder).
|
|
LAUNCH apps/kpunch/dvxbasic/dvxbasic.app TEST/HANG/HANG.DBP
|
|
WAITWIN "DVX BASIC*"
|
|
WAIT 30
|
|
CLICK 75 207
|
|
WAIT 10
|
|
KEY Shift+F7
|
|
WAITWIN "Hang Test [Design]"
|
|
WAITMS 5000
|
|
MOVE 639 479
|
|
WAIT 20
|
|
SHOT sdktbx
|
|
|
|
ASSERTWIN "Program Manager"
|
|
QUIT
|