Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
XCOMM $XConsortium: Imakefile /main/8 1996/10/09 14:09:11 drk $
PROGRAMS = Rtm
INCLUDES = -I. -I$(DTINCLUDESRC)
LOCAL_INCLUDES = -I../shared -I$(TOP)/lib/
SYS_LIBRARIES = -lm
EXTRA_DEFINES = -DLOG -DSYNLIB
#if defined(ApolloArchitecture)
EXTRA_DEFINES = -Dapollo -D_CMDINV
#if defined(SHLIB)
LOCAL_LIBRARIES = -A inlib,$(XLIB)
#endif
#endif
#if defined(SunArchitecture)
SYS_LIBRARIES = -lm -ldl -lgen -lC
SYNLIB=$(TOP)/lib/synlib/libsynlibTst.a
XTST=/usr/openwin/lib/libXtst.a
#endif
#if defined(USLArchitecture)
SYS_LIBRARIES = -lm -ldl -lgen
#endif
#if defined(UXPArchitecture)
SYS_LIBRARIES = -lm -ldl -lgen
#endif
LOCAL_LIBRARIES = ../shared/libtermtest.a $(SYNLIB) $(XTST) $(XEXT) $(XLIB)
SRCS = Rtm.c
OBJS = Rtm.o
NormalLibraryObjectRule()
ComplexProgramTarget($(PROGRAMS))
saber_src: $(SRCS)
XCOMM setopt load_flags $(CFLAGS)
XCOMM load $(SRCS) $(LOCAL_LIBRARIES)
unsaber_src:
XCOMM unload $(SRCS)

View File

@@ -0,0 +1,20 @@
/* $XConsortium: README /main/2 1996/07/15 14:24:24 drk $ */
TestName: Rtm
Description: This program tests the functionality of dtterm with
following resource options set
ttyModes: intr ! quit @ erase # kill $ eof % eol ^ swtch & start *
stop ( susp ) dsusp _
and invokes a program termget to verify the functionality
and logs whatever is not set.
How to run: have two displays, run the program in one pointing to other
display. Also, you have to set the PATH to ../util. (i.e
TOP/cde1/dtterm/tests/util)
commandline: -o dtterm.object

View File

@@ -0,0 +1,88 @@
/* $XConsortium: Rtm.c /main/3 1995/10/31 11:54:45 rswiston $ */
#include <stdio.h>
#include <math.h>
#include "synvar.h"
#ifdef LOG
FILE *TermLog;
#define SAVELOG fclose(TermLog); TermLog = fopen("term.log", "a");
#endif
char LogStr[200];
static char *OptionArr[] = {
/*0*/ " -tm 'intr ! quit @ erase # kill $ eof % eol ^ swtch & start * stop ( susp ) dsusp _'" /* Normal option */
};
static char *LogAction[] = {
/*0*/ "Testing Resource Option -tm "
};
static char *ResourceArr[] = {
"intr ! quit @ erase # kill $ eof % eol ^ swtch & start * stop ( susp ) dsusp _"
};
int MakeResourceFile(ResArr)
char *ResArr;
{
FILE *ResFile;
int i, j, Len;
char Resource[50], Value[50];
if ((ResFile = fopen("res", "w")) == NULL)
{LogError("Resource File Creation fail"); return(-1);}
fprintf(ResFile, "%s*%s: %s\n", TERM_EMU, "ttyModes", ResourceArr[0]);
fclose(ResFile);
}
#define ArrCount (int) (sizeof(ResourceArr) / sizeof(char *))
main(argc, argv)
int argc;
char *argv[];
{
SynStatus Result;
char Command[NEED_LEN], *Shell, *Path;
int i;
#ifdef LOG
if ((TermLog = fopen("term.log", "a")) == NULL) {
if ((TermLog = fopen("term.log", "w")) == NULL)
{printf("Logfile could not be opened \n"); exit(-1);}
}
LogError("****************************************************************************");
LogTime();
sprintf(Command, "TestName: <%s> STARTS\n", argv[0]);
LogError(Command);
#endif
InitTest(argc, argv);
for (i=0; i < ArrCount; i++) {
CheckCapsLock();
ExecCommand("xrdb -load xrdb.out");
MakeResourceFile(ResourceArr[i]);
LogError(LogAction[i]);
strcpy(Command, "xrdb -merge res; ");
strcat(Command, TERM_EMU);
CheckCapsLock();
ExecCommand(Command); sleep(2);
if (WaitWinMap("TermWin") < 0) continue;
ExecCommand("termget");
CloseTerm("TermWin");
WaitWinUnMap("TermWin", 10L);
sleep(2);
}
CheckCapsLock();
ExecCommand("xrdb -load xrdb.out");
CloseTest(False);
#ifdef LOG
sprintf(Command, "TestName: <%s> ENDS\n", argv[0]);
LogError(Command);
LogError("****************************************************************************");
fclose(TermLog);
#endif
}