-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jwi-bitmask
- Loading branch information
Showing
6 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @file client.cpp | ||
* @author Johnny Willemsen | ||
* | ||
* @brief CORBA C++11 client application | ||
* | ||
* @copyright Copyright (c) Remedy IT Expertise BV | ||
*/ | ||
|
||
#include "testC.h" | ||
|
||
int main (int /*argc*/, char* /*argv*/[]) | ||
{ | ||
// Just compilation test | ||
|
||
TestUnion_Octet myunion_octet; | ||
TestUnion_WChar myunion_wchar; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#--------------------------------------------------------------------- | ||
# @file run_illegal_idl3_test.pl | ||
# @author Mark Drijver | ||
# | ||
# @copyright Copyright (c) Remedy IT Expertise BV | ||
#--------------------------------------------------------------------- | ||
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' | ||
& eval 'exec perl -S $0 $argv:q' | ||
if 0; | ||
|
||
print "IDL test\n"; | ||
|
||
use lib "$ENV{ACE_ROOT}/bin"; | ||
use PerlACE::TestTarget; | ||
use File::Spec; | ||
|
||
my $status =0; | ||
my $server = PerlACE::TestTarget::create_target(2) || die "Create target 2 failed\n"; | ||
|
||
# The location of the ridl utility | ||
my $ridl = "$ENV{X11_BASE_ROOT}/bin/ridlc"; | ||
|
||
unless (-e $ridl) { | ||
die "ERROR: Cannot find " . $ridl; | ||
} | ||
|
||
opendir(DIRH, ".") or die "Could not open dir. $!"; | ||
@files = grep(/\.idl$/,readdir(DIRH)); | ||
foreach (sort(@files)){ | ||
print "Testing ", $_, ": "; | ||
my $input_file = $_; | ||
|
||
#Redirect the screen output to the null device. | ||
open (OLDOUT, ">&STDOUT"); | ||
# open (STDOUT, ">" . File::Spec->devnull()); | ||
open (STDOUT, ">" . output); | ||
open (OLDERR, ">&STDERR"); | ||
open (STDERR, ">&STDOUT"); | ||
|
||
# Compile the IDL | ||
system ("$ridl", "$input_file"); | ||
|
||
#Redirect the null device output back to the screen | ||
open (STDOUT, ">&OLDOUT"); | ||
open (STDERR, ">&OLDERR"); | ||
|
||
$found = 0; | ||
open FILE, "<output"; | ||
while (my $line = <FILE>) | ||
{ | ||
#print $line; | ||
if ($line =~ "IDL::Parse") | ||
{ | ||
$found = 1; | ||
close FILE; | ||
last; | ||
} | ||
} | ||
#print "\nFound: " . $found; | ||
if ($found>0) { | ||
print "parsing failed as expected.\n"; | ||
} else { | ||
print STDERR "ERROR: Unable to detect expected ridlc error.\n"; | ||
$status = 1; | ||
} | ||
|
||
} | ||
|
||
exit $status; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#--------------------------------------------------------------------- | ||
# @file run_test.pl | ||
# @author Marcel Smit | ||
# | ||
# @copyright Copyright (c) Remedy IT Expertise BV | ||
#--------------------------------------------------------------------- | ||
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' | ||
& eval 'exec perl -S $0 $argv:q' | ||
if 0; | ||
|
||
# -*- perl -*- | ||
|
||
use lib "$ENV{ACE_ROOT}/bin"; | ||
use PerlACE::TestTarget; | ||
|
||
my $target = PerlACE::TestTarget::create_target(2) || die "Create target 2 failed\n"; | ||
|
||
$status = 0; | ||
|
||
$SV = $target->CreateProcess ("client"); | ||
|
||
$server = $SV->SpawnWaitKill ($target->ProcessStartWaitInterval()); | ||
|
||
if ($server != 0) { | ||
print STDERR "ERROR: const returned $server\n"; | ||
$status = 1; | ||
} | ||
|
||
$target->GetStderrLog(); | ||
|
||
exit $status; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* @file test.idl | ||
* @author Johnny Willemsen | ||
* | ||
* @copyright Copyright (c) Remedy IT Expertise BV | ||
*/ | ||
|
||
union TestUnion_Octet switch(octet) { | ||
case 1: | ||
short FirstCase; | ||
case 2: | ||
long SecondCase; | ||
}; | ||
|
||
union TestUnion_WChar switch(wchar) { | ||
case L'X': | ||
short FirstCase; | ||
case L'\\': | ||
long SecondCase; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// -*- MPC -*- | ||
|
||
project(*idl4_union_gen_idl): ridl_ostream_defaults { | ||
IDL_Files { | ||
test.idl | ||
idlflags += --idl-version=4 | ||
} | ||
custom_only = 1 | ||
} | ||
|
||
project(*idl4_union_client): taox11_client { | ||
after += *idl4_union_gen_idl | ||
Source_Files { | ||
client.cpp | ||
} | ||
Source_Files { | ||
testC.cpp | ||
} | ||
} | ||
|